package com.hm.health.entity.dao;

import org.litepal.crud.DataSupport;

/**
 * Created by chenshi on 2020/3/9.
 */

public class BaseStatistics extends DataSupport {
    // 数据库自增ID
    private int id;
    // 测量记录本地文件名称
    private String mFileName;
    // 测量开始时间
    private String mStartTime;
    // 测量时长
    private String mDuration;
    // 测试者名称
    private String mTesterName;
    // 总包数
    private int mTotalPacketsCount;
    // 丢报数
    private int mLostPacketsCount;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getFileName() {
        return mFileName;
    }

    public void setFileName(String fileName) {
        mFileName = fileName;
    }

    public String getStartTime() {
        return mStartTime;
    }

    public void setStartTime(String startTime) {
        mStartTime = startTime;
    }

    public String getDuration() {
        return mDuration;
    }

    public void setDuration(String duration) {
        mDuration = duration;
    }

    public String getTesterName() {
        return mTesterName;
    }

    public void setTesterName(String testerName) {
        mTesterName = testerName;
    }

    public void setTotalPacketsCount(int totalPacketsCount) {
        mTotalPacketsCount = totalPacketsCount;
    }

    public void setLostPacketsCount(int lostPacketsCount) {
        mLostPacketsCount = lostPacketsCount;
    }

    public float getLostPrecents() {
        return mLostPacketsCount / (float)mTotalPacketsCount;
    }
}
